package cn.vonce.sqlbean.example.model.entity;

import cn.vonce.sql.annotation.SqlColumn;
import cn.vonce.sql.annotation.SqlTable;
import cn.vonce.sqlbean.example.model.BaseEntity;
import lombok.Data;

/**
 * 文章
 *
 * @author Jovi
 * @email imjovi@qq.com
 * @date 2023/10/27 17:14
 */
@Data
@SqlTable(autoAlter = true, value = "t_essay", remarks = "文章")
public class Essay extends BaseEntity {

    @SqlColumn(notNull = true, remarks = "用户id")
    private Long userId;

    @SqlColumn(notNull = true, remarks = "标题")
    private String title;

    @SqlColumn(notNull = true, remarks = "内容")
    private String content;

}
